<?php
include_once "Teacher.php";
include_once "Shangpin.php";

$teacher = new Teacher();
$teacher->name = "芳华";
$teacher->age = 23;
$teacher->like = "看书、学习、看新闻";
echo "<br>";
echo $teacher;
echo "<br>";
$teacher->sbook();
echo "<br>";
$teacher->study();
echo "<br>";


$teacher2 = new Teacher();
$teacher2->name = "暮辞";
$teacher2->age = 21;
$teacher2->like = "听歌、看剧、和学生玩";
echo "<br>";
echo $teacher2;
echo "<br>";
$teacher2->sbook();
echo "<br>";
$teacher2->study();
echo "<br>";

$shangpin = new Shangpin("小爱音箱",399);
//$shangpin->name = ;
//$shangpin->jiage = ;
$shangpin->kucun = "120000";
echo "<br>";
$shangpin->sp();;
echo "<br>";


$shouji = new Shouji("小米手机","1400");
$shouji->pingpai = "小米";
$shouji->chandi = "北京";
$shouji->kucun = "124500";
echo "<br>";
$shouji->sj();
echo "<br>";
